import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


public class cSSSELECTORS {

	public static void main(String[] args) 	{	

		WebDriver driver = new FirefoxDriver();
		driver.get("http:www.facebook.com");
		
//CSS SELECTOR IS USED TO IDENTIFY ELEMENTS ON A PAGE FASTER THAN XPATH
//INVOKE FIREBUG => CLICK FIREPATH ON TOP => CLICK ON XPATH DROPDOWN BUTTON => SELECT CSS 	
//CLICK ON LOGIN BOX & LINE WILL BE HIGHLIGHTED===> SYNTAX FOR CSS IS Css==tagname[attribute='value']
		//NOTE: CHOOSE UNIQUE ATTRIBUTE FOR EACH ELEMENT OR LINE 

		driver.findElement(By.cssSelector("input[id='email']")).sendKeys("sarabjit115@yahoo.com");
		driver.findElement(By.cssSelector("input[id='pass']")).sendKeys("kushpreet");
		driver.findElement(By.cssSelector("input[type='submit']")).click();
		
	
	
	}
	
	

}
